package com.qzuser.sendmessagebasic.server.message;

import java.io.Serializable;

public class BasicProperties implements Serializable {
    private String messageId;
    private String routingKey;
    private Integer deliverMode = 0;

    public BasicProperties() {}

    public BasicProperties(BasicProperties other) {
        this.messageId = other.messageId;
        this.routingKey = other.routingKey;
        this.deliverMode = other.deliverMode;
    }

    public String getMessageId() {
        return messageId;
    }

    public void setMessageId(String messageId) {
        this.messageId = messageId;
    }

    public String getRoutingKey() {
        return routingKey;
    }

    public void setRoutingKey(String routingKey) {
        this.routingKey = routingKey;
    }

    public Integer getDeliverMode() {
        return deliverMode;
    }

    public void setDeliverMode(Integer deliverMode) {
        this.deliverMode = deliverMode;
    }

    @Override
    public String toString() {
        return "BasicProperties: {" + "\n\t" +
                "messageId: " + messageId + "\n\t" +
                "routingKey: " + routingKey + "\n\t" +
                "deliverMode: " + deliverMode + "\n" +
                "}";
    }
}
